package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class OOSDemo {
    public static void main(String[] args) throws IOException {
        Student rrf=new Student("rrf",25,"男",new String[]{"是一名程序猿","闻喜滴","喜欢猫","喜欢李老师"});
        FileOutputStream fos=new FileOutputStream("Student.obj");
        ObjectOutputStream oos=new ObjectOutputStream(fos);
        oos.writeObject(rrf);
        System.out.println("写出完成");
        oos.close();











    }
}
